<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>${message("查询组织")}</title>
<link href="/resources/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/resources/js/reference/jquery.js"></script>
<script type="text/javascript" src="/resources/js/base/dialog.js"></script>
<script type="text/javascript" src="/resources/js/base/request.js"></script>
<script type="text/javascript" src="/resources/js/base/global.js"></script>
<script type="text/javascript" src="/resources/js/reference/mmGrid.js"></script>
<link href="/resources/css/mmGrid.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$().ready(function() {
		var cols = [
		{ title:'${message("锁编号")}', name:'elock_num' , align:'center'},
		{ title:'${message("锁名称")}', name:'elock_name' , align:'center'},
		{ title:'${message("锁类型")}', name:'type_value' ,align:'center' },
		{ title:'${message("锁型号")}', name:'model_value' ,align:'center' },
	];
	var multiSelect = false;
	[#if multi==2]
		multiSelect = true;
	[/#if]
	
	$mmGrid = $('#table-m1').mmGrid({
		multiSelect:multiSelect,
		autoLoad: true,
		fullWidthRows:true,
		checkByClickTd:true,
		rowCursorPointer:true,
        cols: cols,
        url: 'select_list_data.jhtml',
        callback:function(){
        	
        },
	    params:function(){
        	return $("#listForm").serializeObject();
        },
	    plugins : [
            $('#paginator').mmPaginator()
        ]
    });
	});
	function childMethod(){
	   return $mmGrid.selectedRows();
	}
</script>
</head>
<body style="min-width:0px;">
	<form id="listForm" action="select_list.jhtml" method="get">
	<input type="hidden"  name="saleOrgId" value ="${saleOrgId}" />
	<div class="bar">
		<div class="buttonWrap">
		</div>
		<div id="searchDiv">
	        <div id="search-content" >
		    	<dl>
		    		<dt><p>${message("锁编号")}：</p></dt>
		    		<dd>
						<input type="text" class="text" id="elockNum" name="elockNum" value ="${elockNum}" btn-fun="clear" />
		    		</dd>
		    	</dl>
		    	<dl>
		    		<dt><p>${message("锁名称")}：</p></dt>
		    		<dd>
						<input type="text" class="text" id="elockName" name="elockName" value ="${elockName}" btn-fun="clear" />
		    		</dd>
		    	</dl>
	        </div>
		<div class="search-btn"><a href="javascript:;" id="searchBtn" class="iconButton">${message("1004")}</a></div>
		</div>
	</div>
	<div class="table-responsive">
		<table id="table-m1"></table>
        <div id="body-paginator" style="text-align:left;">
            <div id="paginator"></div>
        </div>
	</div>
</form>
</body>
</html>